Class HighScore

java.lang.Object
  extended by HighScore

public class HighScore
extends java.lang.Object


Field Summary
(package private)  java.lang.String id
           
 
Constructor Summary
HighScore(java.lang.String id)
           
 
Method Summary
 java.lang.String clearScores()
          Erase all scores, probably for testing purposes.
 double getHighScore()
          Gets the high score
 java.lang.String getHighScoreName()
          Returns who has the high score, if its set
 java.lang.String setScore(double score)
          Set score (not giving a name) and returns rank like 5/8
 java.lang.String setScore(double score, java.lang.String name)
          Set score with name and returns rank like 5/8
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

java.lang.String id
Constructor Detail

HighScore

public HighScore(java.lang.String id)
Method Detail

clearScores

public java.lang.String clearScores()
Erase all scores, probably for testing purposes.


getHighScore

public double getHighScore()
Gets the high score


getHighScoreName

public java.lang.String getHighScoreName()
Returns who has the high score, if its set


setScore

public java.lang.String setScore(double score)
Set score (not giving a name) and returns rank like 5/8


setScore

public java.lang.String setScore(double score,
                                 java.lang.String name)
Set score with name and returns rank like 5/8